# Contributor: Matthew.T.Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew.T.Hoare <matthew.t.hoare@gmail.com>
pkgname=autotiling
pkgver=1.8
pkgrel=1
pkgdesc="Script for sway and i3 to automatically switch the horizontal/vertical window split orientation"
url="https://github.com/nwg-piotr/autotiling"
arch="noarch"
options="!check" # no checks
license="GPL-3.0-or-later"
depends="py3-i3ipc"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/autotiling/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	sed -e '/wheel/d' -i setup.cfg
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
b96a171a926f9e248b5899481f3355f52e9fcfd328d2843d76381f72c404923a0c63db7e2a2bfd514c94f7809f39326b097578eb22af6ac6577bbedc5a142016  autotiling-1.8.tar.gz
"
